<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHotWordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hot_words', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('热点词名称');
            $table->integer('sort')->unsigned()->comment('排序');
            $table->integer('position')->unsigned()->comment('展示位置');
            $table->string('link')->comment('链接地址');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('hot_words');
    }
}
